package db.pojo;

import java.util.*;
import java.text.SimpleDateFormat;
import db.ext.EausermenumapExt;
@SuppressWarnings("unchecked")
/**
 * eausermenumap
 */
public class Eausermenumap {
	/**
	 * AUTHORIZEID
	 */
	public String aUTHORIZEID;
	/**
	 * USERID
	 */
	public String uSERID;
	/**
	 * MENUID
	 */
	public String mENUID;
	/**
	 * AUTHORIZELEVEL
	 */
	public String aUTHORIZELEVEL;
	SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static EausermenumapExt DB = new EausermenumapExt(); 
	
	public Eausermenumap() {
		super();
	}
	
	public Eausermenumap(String aUTHORIZEID, String uSERID, String mENUID, String aUTHORIZELEVEL) {
		super();
		this.aUTHORIZEID = aUTHORIZEID; 
		this.uSERID = uSERID; 
		this.mENUID = mENUID; 
		this.aUTHORIZELEVEL = aUTHORIZELEVEL; 
	}
	
	public String getAUTHORIZEID() {
		return aUTHORIZEID;
	}

	public void setAUTHORIZEID(String aUTHORIZEID) {
		this.aUTHORIZEID = aUTHORIZEID;
	} 
	
	public String getUSERID() {
		return uSERID;
	}

	public void setUSERID(String uSERID) {
		this.uSERID = uSERID;
	} 
	
	public String getMENUID() {
		return mENUID;
	}

	public void setMENUID(String mENUID) {
		this.mENUID = mENUID;
	} 
	
	public String getAUTHORIZELEVEL() {
		return aUTHORIZELEVEL;
	}

	public void setAUTHORIZELEVEL(String aUTHORIZELEVEL) {
		this.aUTHORIZELEVEL = aUTHORIZELEVEL;
	} 
	
	
	public Map eausermenumapToMap() {
		Map map = new HashMap();
		try {
			map.put("aUTHORIZEID",this.aUTHORIZEID);
			map.put("uSERID",this.uSERID);
			map.put("mENUID",this.mENUID);
			map.put("aUTHORIZELEVEL",this.aUTHORIZELEVEL);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return map;
	}

	public Eausermenumap mapToEausermenumap(Map map){
		try {
			String aUTHORIZEID =  map.get("aUTHORIZEID").toString();
			String uSERID =  map.get("uSERID").toString();
			String mENUID =  map.get("mENUID").toString();
			String aUTHORIZELEVEL =  map.get("aUTHORIZELEVEL").toString();
			Eausermenumap eausermenumap = new Eausermenumap(aUTHORIZEID, uSERID, mENUID, aUTHORIZELEVEL);
			return eausermenumap;
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	} 
	
	public String toString(){
		return eausermenumapToMap().toString();
	}
	
	//方便数据操作	
	public Eausermenumap insert(){
		return DB.insert(this);
	}
	public Eausermenumap update(){
		return DB.update(this);
	}
	
	public int delete(){
		return DB.delete(this);
	}
	
}
